package com.htjc.uep.center.model.enums;

public enum ErrorStatus {

	ERROR_UNKNOWN("UNK-000000", "未明"),
	ERROR_PARAM("PAR-000001", "参数为空"),
	ERROR_TYPE("TYPE-000001", "操作类型错误"),
	ERROR_ENCRYPT("ENC-000001", "加解密失败"),
	ERROR_PALTFORM_NULL("PAL-000001", "合作平台不存在"),
	ERROR_POOL_NULL("POOL-000001", "积分池不存在"),
	ERROR_BUSINESS_NULL("EBU-000001", "业务流程不存在"),
	ERROR_TOTAL_LESS_ZERO("TOT-000000", "积分池总量小于等于零"),
	ERROR_TOTAL_INADEQUATE("TOT-000001", "积分池总量不足"),
	ERROR_POOL_STATUS("STA-000000", "积分池状态异常"),
	ERROR_POOL_FROZEN("STA-000001", "积分池已冻结"),
	ERROR_DEDUCTION_EXCEPT("DED-000000", "积分池扣减调用异常"),
	ERROR_DEDUCTION_FAIL("DED-000001", "积分池扣减失败"),
	ERROR_DEDUCTION_ADD("DED-000002", "调用积分流入失败"),
	ERROR_SIGN("SGN-000001", "证书验签失败");
	
	private String code;
	
	private String message;
	
	private ErrorStatus(String code, String message) {
		this.code = code;
		this.message = message;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
}
